#include "Course.h"

Course::Course(){
    sid = "";
    lid = 0;
    semester = 0;
    room = "";
    time = "";
}

Course::Course(string i_sid,int i_lid,short i_semester,string i_room,string i_time){
    sid = i_sid;
    lid = i_lid;
    semester = i_semester;
    room = i_room;
    time = i_time;
}

void Course::Show(){
    cout<<sid<<":"<<lid<<":"<<semester<<":"<<room<<":"<<time<<"\n";
}

void Course::Set_sid(string n_sid){
    sid = n_sid;
}

void Course::Set_lid(int n_lid){
    lid = n_lid;
}

void Course::Set_semester(short n_semester){
    semester = n_semester;
}

void Course::Set_room(string n_room){
    room = n_room;
}

void Course::Set_time(string n_time){
    time = n_time;
}

string Course::Get_sid(){
    return sid;
}

int Course::Get_lid(){
    return lid;
}

short Course::Get_semester(){
    return semester;
}

string Course::Get_room(){
    return room;
}

string Course::Get_time(){
    return time;
}
